package com.example.customizeview;

import android.content.Context;
import android.webkit.WebView;

/**
 * Created by tangjiangxu on 10/10/17.
 */

public class WebViewUtils {


    private static WebView sWebView;

    public static void initWebView(Context context) {
        if (sWebView == null) {
            sWebView = new WebView(context.getApplicationContext());
        }
    }

    public static WebView getWebView() {
        return sWebView;
    }
}
